package com.example.RuanJianKeShe.Dao;

import com.example.RuanJianKeShe.Bean.Student;
import com.example.RuanJianKeShe.Bean.Teacher;

import java.util.List;

public interface TeacherDao {
    /**
     * 获取所有教师信息
     * @return List<Student>
     */
    public List<Teacher> getAllTeacher();

    /**
     * 通过教师号和密码获取教师信息
     * @param id int
     * @param key String
     * @return Teacher
     */
    public Teacher getTeacherByIdAndKey(int id,String key);

    /**
     * 通过教师号查找教师
     * @param id String
     * @return Teacher
     */
    public Teacher getTeacherById(int id);

    /**
     * 通过教师号修改教师信息
     * @param teacher String
     * @return Boolean
     */
    public boolean setTeacherById(Teacher teacher);

    /**
     * 通过教师类来添加教师信息
     * @param teacher Teacher
     * @return boolean
     */
    public boolean addTeacher(Teacher teacher);

    /**
     * 通过教师号删除教师
     * @param id int
     * @return 被删除的教师
     */
    public boolean delTeacher(int id);
}
